package com.zed.api.useradmin;

/**
 * 无法找到对应的账号时抛出的例外
 *
 * @author Zed
 */
public class AccountNotFoundException extends AccountException {

    /**
     *
     */
    private static final long serialVersionUID = 8640679932223698955L;

    private String id;

    /**
     *
     */
    public AccountNotFoundException(String id) {
        super("cannot found account: id=".concat(id));
        this.id = id;
    }

    /**
     * 编号
     *
     * @return {@link String}
     */
    public String getId() {
        return this.id;
    }

    @Override
    public String getLocalizedMessage() {
        return String.format("未找到账号[编号=%s]", getId());
    }
}
